<template>
  <div class="recommend">
    <div class="title border-bottom">
      <span>周末去哪儿</span>
    </div>
    <ul class="list">
      <li class="item" v-for="item in list" :key="item.id">
        <div class="item-img">
          <img :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="item-title">{{ item.title }}</p>
          <p class="item-commend">{{ item.msg }}</p>
        </div>
      </li>
    </ul>
    <div class="price-desc">
      <span class="price-desc-icon iconfont">&#xe649;</span>
      <div class="price-desc-info"><span>票面价</span>是指通过景区指定窗口售卖的纸质门票上标注的价格</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  }
}
</script>

<style scoped lang="less">
  @import "~styles/varibles";
  .recommend{
    margin-top: 0.2rem;
    background-color: #fff;
    .title{
      height: 0.94rem;
      line-height: 0.94rem;
      font-size: 0.32rem;
      span{
        margin-left: 0.2rem;
      }
    }
    .list{
      .item{
        width: 100%;
        padding-bottom: 0.2rem;
        box-sizing: border-box;
        .item-img{
          width: 100%;
          img{
            width: 100%;
          }
        }
        .item-info{
          padding-left: 0.22rem;
          padding: 0.14rem 0.2rem 0.2rem 0.2rem;
          .item-title{
            line-height: .48rem;
            font-size: 0.28rem;
          }
          .item-commend{
            color: @msgColor;
            line-height: 0.44rem;
            font-size: 0.24rem;
          }
        }
      }
    }
    .price-desc{
      padding: .14rem .1rem;
      color: @msgColor;
      background-color: #fff;
      line-height: 0.32rem;
      .price-desc-icon{
        float: left;
        font-size: .24rem;
        display: block;
      }
      .price-desc-info{
        font-size: 0.24rem;
        span{
          font-weight: bold;
        }
      }
    }
  }
</style>
